package com.breakfast.fun.data.entity.user.recharge;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/8/24.
 */
public class CmbPay implements Serializable {

    /**
     * payUrl : http://61.144.248.29:801/netpayment/BaseHttp.dll?PrePayEUserP
     * BranchID : 0591
     * CoNo : 000035
     * BillNo : 4272506880
     * Amount : 0.01
     * Date : 20160824
     * MerchantUrl : http://beta.52letsgo.cn/pay/CMB/callback
     * MerchantPara : orderNo=C768292504201203712
     * MerchantCode : |VULnS4evMxU5rzY/gPa1ISezX5p0ooSPJanA78IBD0vrTw8QkUQ9HihSCXe8js*owBVaMj9J0TzplylT45sNUMPh2ULgNf2EJTzsFiWwRt*QgCrpoSQzuz*Y0a4foeNz39IGi0eKLejWqLVHJNXp61u9vfbKJ/b58/HxpnoTQeG5bKNwtA3zkf1mqsnc0LxwHNeq8qAu*mlUqQo1PaXptYwjd8dxX/zzPwHerN5Jh2xyKi6tUjKy5jIcHVduhtpqLsyJwQF4ZlMHpdJgoSpl4/xvWv76hlxwrZs4xqD2lGn3JfflUaJFb1luMDyvZRouyia*Y*o=|333130dd6640d81cf2d247ca9193c35583abd192
     */

    private String payUrl;
    private String BranchID;
    private String CoNo;
    private String BillNo;
    private String Amount;
    private String Date;
    private String MerchantUrl;
    private String MerchantPara;
    private String MerchantCode;
    private String tip;

    public static CmbPay objectFromData(String str) {

        return new Gson().fromJson(str, CmbPay.class);
    }

    public static List<CmbPay> arrayCmbPayFromData(String str) {

        Type listType = new TypeToken<ArrayList<CmbPay>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getPayUrl() {
        return payUrl;
    }

    public void setPayUrl(String payUrl) {
        this.payUrl = payUrl;
    }

    public String getBranchID() {
        return BranchID;
    }

    public void setBranchID(String BranchID) {
        this.BranchID = BranchID;
    }

    public String getCoNo() {
        return CoNo;
    }

    public void setCoNo(String CoNo) {
        this.CoNo = CoNo;
    }

    public String getBillNo() {
        return BillNo;
    }

    public void setBillNo(String BillNo) {
        this.BillNo = BillNo;
    }

    public String getAmount() {
        return Amount;
    }

    public void setAmount(String Amount) {
        this.Amount = Amount;
    }

    public String getDate() {
        return Date;
    }

    public void setDate(String Date) {
        this.Date = Date;
    }

    public String getMerchantUrl() {
        return MerchantUrl;
    }

    public void setMerchantUrl(String MerchantUrl) {
        this.MerchantUrl = MerchantUrl;
    }

    public String getMerchantPara() {
        return MerchantPara;
    }

    public void setMerchantPara(String MerchantPara) {
        this.MerchantPara = MerchantPara;
    }

    public String getMerchantCode() {
        return MerchantCode;
    }

    public void setMerchantCode(String MerchantCode) {
        this.MerchantCode = MerchantCode;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }
}
